package com.qiaofang.entity;

import com.qiaofang.common.model.BaseDomain;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

@Data
@Entity
@Table(name = "tm_api_log")
public class ApiLog extends BaseDomain {

    /**
     * 请求地址
     */
    private String url;
    /**
     * 请求内容
     */
    private String content;
    /**
     * 请求结果
     */
    private String result;
    /**
     * 备注
     */
    private String remark;
    /**
     * 请求id
     */
    @Column(name = "request_id")
    private Long requestId;
    /**
     * 请求内容
     */
    @Column(name = "request_content")
    private String requestContent;
    /**
     * 返回内容
     */
    @Column(name = "response_content")
    private String responseContent;
    /**
     * 关联id
     */
    @Column(name = "other_relation_id")
    private String otherRelationId;
    /**
     * 业务类型
     */
    @Column(name = "business_type")
    private Integer businessType;
    /**
     * 请求类型，渠道请求，V10请求
     */
    @Column(name = "request_type")
    private Integer requestType;
    /**
     * 渠道公司id
     */
    @Column(name = "company_id")
    private Long companyId;
    /**
     * 其他公司id
     */
    @Column(name = "other_company_id")
    private String otherCompanyId;
    /**
     * 渠道楼盘id
     */
    @Column(name = "premises_id")
    private Long premisesId;
    /**
     * 楼盘名称
     */
    @Column(name = "premises_name")
    private String premisesName;
    /**
     * 渠道人员id
     */
    @Column(name = "partner_id")
    private Long partnerId;
    /**
     * 人员姓名
     */
    @Column(name = "partner_name")
    private String partnerName;
    /**
     * 业务原始操作时间
     */
    @Column(name = "business_time")
    private Date businessTime;
    /**
     * 合作机构id
     */
    @Column(name = "agent_company_id")
    private Long agentCompanyId;
    /**
     * 补发记录id
     */
    @Column(name = "record_id")
    private Long recordId;
    /**
     * 补发次数
     */
    @Column(name = "record_count")
    private Integer recordCount;

}
